<%@ page import="pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>首页</title>
    <link type="text/css" rel="stylesheet" href="../../skin/css/table.css"/>
    <link type="text/css" rel="stylesheet" href="../../skin/css/form.css"/>
    <script type="text/javascript" src="../skin/js/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        function checkPwd() {
            var pwd1= $("#new_pwd").val();
            var pwd=$("#agin_new_pwd").val();
            if($("#old_pwd").val().length==0){
                alert("旧密码不能为空")
            }
            if($("#old_pwd").val()!=${userInfo.password}){
                alert("旧密码错误")
            }
            if(pwd1.length==0){
                alert("新密码不能为空");
                $(".submit_id").attr("disabled",false);
            }
            if (pwd==(pwd1)){
                $(".submit_id").attr("disabled",false);
            }else {
                alert("两次输入的密码不一致");
                $(".submit_id").attr("disabled",true);
            }
        }
    </script>
</head>


<body>
<jsp:include page="../functionModule.jsp"/>
<!--right-->
<div class="right_layout">
    <img src="../skin/images/left_hidden1_03.png" class="hidden_img"/>
    <div class="right_content">
        <div class="hr-5"></div>
        <div class="right_tit">
            <div class="right_back fyh"><a href="${pageContext.request.contextPath}/home?method=home">返回</a></div>
            <div class="tit_bg fyh">当前位置： 个人菜单 >>信息修改</div>
        </div>
        <div style="border-bottom: solid ;border-width:1px;padding-top: 30px;padding-left: 30px;border-color: #CCCCCC">
            <span style="border: solid;border-color: #CCCCCC; border-width:1px;font-size: 16px;padding: 10px 10px 0px 10px"><b>基本资料</b></span></hr>
        </div>
        <form action="/info?method=UpdateInfo" method="post">
            <table class="fm_tab">

                <tr>
                    <td class="fm_td1 fyh"><span class="fm_text">手机号码：</span></td>
                    <td class="fm_td2"><input id="tl" name="tl" type="text" value="${userInfo.tl}" class="fm_tt1" style="width:40%"/></td>
                </tr>
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">旧密码：</span></td>
                    <td width="35%" class="fm_td2"><input type="text" id="old_pwd"   name="old_pwd"  class="fm_tt1" style="width:40%"/></td>
                </tr>
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">新密码：</span></td>
                    <td width="35%" class="fm_td2"><input type="password" id="new_pwd"   name="new_pwd"   class="fm_tt1" style="width:40%"/></td>
                </tr>
                <tr>
                    <td width="15%" class="fm_td1 fyh"><span class="fm_text">再次输入新密码：</span></td>
                    <td width="35%" class="fm_td2"><input type="password" onblur="checkPwd()" id="agin_new_pwd"   name="agin_new_pwd"   class="fm_tt1" style="width:40%"/></td>
                </tr>
            </table>
                <div style="padding-top: 20px;padding-left: 300px;">
            <input type="submit" value="" class="table_bt submit_id"/><input  type="submit" id="submit_id" class="table_bt fyh submit_id" value="修&nbsp;&nbsp;改"/><input type="submit" value="" class="table_bt submit_id"/>
            </div>
        </form>
    </div>
    <div class="floor fyh">软件开发：&nbsp;赣州科睿特软件技术有限公司(技术支持)&nbsp;&nbsp;&nbsp;&nbsp;客服电话：&nbsp;0797-8356742</div>
</div>
</body>
</html>

